import {HANDEL_CODE_CONFIG} from "@/views/checkPage/config/eventConfig";

const NUMBER_CONFIG = {
  // 自查
  [HANDEL_CODE_CONFIG.SELF_INSPECTION]: {
    queryUrl: '/business/defect/selfCheck/questionStatistic',
    dataList:[
      {
        label:'隐患数量',
        value:'questionCount'
      },
      {
        label:'整改完成隐患数量',
        value:'completedQuestionCount'
      },
      {
        label:'待确认',
        value:'waitConfirmCount'
      },
      {
        label:'整改中隐患数量',
        value:'rectificationQuestionCount'
      },
      {
        label:'未整改隐患数量',
        value:'noRectificationQuestionCount'
      },
    ]
  },
  // 隐患整改
  [HANDEL_CODE_CONFIG.HIDDEN_DANGER_RECTIFICATION]: {
    queryUrl: '/business/defect/repair/getStatisticNum',
    dataList:[
      {
        label:'隐患数量',
        value:'questionCount'
      },
      {
        label:'整改完成隐患数量',
        value:'repairedCount'
      },
      {
        label:'待确认',
        value:'waitConfirmCount'
      },
      {
        label:'整改中隐患数量',
        value:'repairingCount'
      },
      {
        label:'未整改隐患数量',
        value:'noRepairCount'
      },
    ]
  },
  // 企业隐患复核
  [HANDEL_CODE_CONFIG.QY_HIDDEN_DANGER_REVIEW]: {
    queryUrl: '/business/defect/enterpriseLeader/getCheckStatistic',
    dataList:[
      {
        label:'通过数量',
        value:'checkOkCount'
      },
      {
        label:'退回数量',
        value:'checkNoCount'
      },
      {
        label:'待审核数量',
        value:'waitCheckCount'
      },
    ]
  },
  // 监管部门隐患初审
  [HANDEL_CODE_CONFIG.JG_HIDDEN_DANGER_REVIEW]: {
    queryUrl: '/business/defect/supLeader/getCheckStatistic',
    dataList:[
      {
        label:'通过数量',
        value:'checkOkCount'
      },
      {
        label:'退回数量',
        value:'checkNoCount'
      },
      {
        label:'待审核数量',
        value:'waitCheckCount'
      },
    ]
  },
  // 监管部门隐患初审
  [HANDEL_CODE_CONFIG.JG_HIDDEN_DANGER_REVIEW_FS]: {
    queryUrl: '/business/defect/supLeaderFs/getCheckStatistic',
    dataList:[
      {
        label:'通过数量',
        value:'checkOkCount'
      },
      {
        label:'退回数量',
        value:'checkNoCount'
      },
      {
        label:'待审核数量',
        value:'waitCheckCount'
      },
    ]
  },

  // 督查
  [HANDEL_CODE_CONFIG.SUPERVISE_AND_EXAMINE]: {
    queryUrl: '/business/defect/defectSupervisionCheck/getSupervisionCheckStatistic',
    dataList:[
      {
        label:'督查企业数量',
        value:'enterpriseCount'
      },
      {
        label:'隐患数量',
        value:'allCount'
      },
      {
        label:'整改完成隐患数量',
        value:'completedQuestionCount'
      },
      {
        label:'待确认',
        value:'waitConfirmCount'
      },
      {
        label:'整改中隐患数量',
        value:'rectificationQuestionCount'
      },
      {
        label:'未整改隐患数量',
        value:'noRectificationQuestionCount'
      },
    ]
  },
  // 抽查
  [HANDEL_CODE_CONFIG.SPOT_CHECK]: {
    queryUrl: '/business/defect/defectSpotCheck/getSpotCheckStatistic',
    dataList:[
      {
        label:'抽查企业数量',
        value:'enterpriseCount'
      },
      {
        label:'隐患数量',
        value:'allCount'
      },
      {
        label:'整改完成隐患数量',
        value:'completedQuestionCount'
      },
      {
        label:'待确认',
        value:'waitConfirmCount'
      },
      {
        label:'整改中隐患数量',
        value:'rectificationQuestionCount'
      },
      {
        label:'未整改隐患数量',
        value:'noRectificationQuestionCount'
      },
    ]
  },

  // 抽查隐患
  [`${HANDEL_CODE_CONFIG.SPOT_CHECK}-info`]: {
    queryUrl: '/business/defect/defectSpotCheck/getSpotCheckInfo',
    dataList:[
      {
        label:'隐患数量',
        value:'allCount'
      },
      {
        label:'整改完成隐患数量',
        value:'completedQuestionCount'
      },
      {
        label:'待确认',
        value:'waitConfirmCount'
      },
      {
        label:'整改中隐患数量',
        value:'rectificationQuestionCount'
      },
      {
        label:'未整改隐患数量',
        value:'noRectificationQuestionCount'
      },
    ]
  },
  // 督查隐患
  [`${HANDEL_CODE_CONFIG.SUPERVISE_AND_EXAMINE}-info`]: {
    queryUrl: '/business/defect/defectSpotCheck/getSpotCheckInfo',
    dataList:[
      {
        label:'隐患数量',
        value:'allCount'
      },
      {
        label:'整改完成隐患数量',
        value:'completedQuestionCount'
      },
      {
        label:'待确认',
        value:'waitConfirmCount'
      },
      {
        label:'整改中隐患数量',
        value:'rectificationQuestionCount'
      },
      {
        label:'未整改隐患数量',
        value:'noRectificationQuestionCount'
      },
    ]
  },

  // 隐患查询
  [HANDEL_CODE_CONFIG.HIDDEN_DANGER_QUERY]: {
    queryUrl: '/business/defect/defectQuestionQuery/statisticData',
    dataList:[
      {
        label:'隐患数量',
        value:'zongshu'
      },
      {
        label:'整改完成隐患数量',
        value:'zhenggaiwancheng'
      },
      {
        label:'待确认',
        value:'waitConfirmCount'
      },
      {
        label:'整改中隐患数量',
        value:'zhenggaizhong'
      },
      {
        label:'未整改隐患数量',
        value:'weizhenggai'
      },
    ]
  },
}

export {NUMBER_CONFIG}
